import request from '../utils/request'
export default {
    list() {
        return request({
            url: '/course/type/list',
            method: 'post'
        })
    },
    add(data) {
        return request({
            url: '/course/type/add',
            method: 'post',
            data
        })
    },
    edit(data) {
        return request({
            url: '/course/type/edit',
            method: 'post',
            data
        })
    },
    info(id) {
        return request({
            url: '/course/type/info',
            method: 'post',
            data: { id }
        })
    },
    delete(id) {
        return request({
            url: '/course/type/delete',
            method: 'post',
            data: { id }
        })
    }
}
